package org.icress.fusion.b2b

class Industry {//交易对象分类方式CMSMR
    
    String serialNumber//编号
    String shortName//简称
    String fullName//全称
    Boolean isActive//是否启用
    String description//备注

    static constraints = {
        serialNumber(nullable:false,blank:false, maxSize:6)
        shortName(nullable:false, blank:false, maxSize:20)
        fullName(nullable:false, blank:false, maxSize:50)
        isActive(nullable:true)
        description(maxSize:255, nullable:true, blank:true)
    }
    
    String toString() {
        return "$serialNumber-$shortName"
    }
    
    static mapping = {
        table 'B2B_INDUSTRY'
    }
}
